package org.jeecg.modules.charge.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.entity.charge.ChargeFeeitem;
import org.jeecg.modules.charge.entity.ChargeFeeitemTree;

import java.util.List;
import java.util.Map;

/**
 * @Description: 收费项目
 * @Author: jeecg-boot
 * @Date:   2019-07-04
 * @Version: V1.0
 */
public interface ChargeFeeitemMapper extends BaseMapper<ChargeFeeitem> {
    List<String> queryFeeproject(String category);

    List<String> selectCategory();

    List<Map> selectFee();
   //查询所有的收费项目类别
    List<ChargeFeeitemTree> getCategory();
    List<ChargeFeeitem> selectFeeItemList();
    ChargeFeeitem getByCode( @Param("feeCode") String feeCode);

    ChargeFeeitem getFeeitemById(@Param("id") String id);

    List<ChargeFeeitem> listByParams(@Param("page") Page<ChargeFeeitem> page, @Param("map") Map map);

    List<ChargeFeeitem> queryItemByName(@Param("itemName") String itemName);

    Integer getChargeFeeRule(@Param("itemId") String id);
}
